/*
 * Copyright (c) 2007-2020 西安交通信息投资营运有限公司 版权所有
 */

package com.github.lvyanyang.client.sys;

import com.github.lvyanyang.core.XCI;
import com.github.lvyanyang.sys.web.SysWebApplication;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;

import java.util.List;

/**
 * 启动器
 **/
@EnableCaching
@EnableTransactionManagement
@SpringBootApplication
@PropertySource("classpath:xci.properties")
public class SysApplication extends SysWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(SysApplication.class, args);
    }

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName(XCI.redirectUrl("/sys"));
    }
}